﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GetooLibs
{
    [Serializable]
    public  class GetooFile
    {
        private string fileName;
        private string hash;
        private int version;
        private DateTime modifyDate;
        private string targetApplication;

        public string TargetApplication
        {
            get { return targetApplication; }
            set { targetApplication = value; }
        }

        public string FileName
        {
            get { return fileName; }
            set { fileName = value; }
        }


        public string Hash
        {
            get { return hash; }
            set { hash = value; }
        }


        public int Version
        {
            get { return version; }
            set { version = value; }
        }

        public DateTime ModifyDate
        {
            get { return modifyDate; }
            set { modifyDate = value; }
        }


        public GetooFile() { }


        public GetooFile(string fileName, string hash) : this(fileName, hash, 0, DateTime.Now,"Getoo") { }

        public GetooFile(string filename, string hash, string targetApplication) : this(filename, hash,0,DateTime.Now, targetApplication) { }

        public GetooFile(string fileName, string hash,int version ,DateTime modifyDate,string targetApplication) 
        {
            this.fileName = fileName;
            this.hash = hash;
            this.version = version;
            this.modifyDate = modifyDate;
            this.targetApplication = targetApplication;

        }



    }
}
